package com.newly.common.base.entity.business.Po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * @anthor sbq
 * @date 2021/11/8 15:09
 */
@Data
@TableName(value = "gov_media")
public class Media implements Serializable {
    /**
     * 自增id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 对应的业务表的id
     */
    @TableField(value = "order_id")
    private String orderId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private String createTime;

    /**
     * 图片路径
     */
    @TableField(value = "picture_url")
    private String pictureUrl;

    /**
     * 描述
     */
    @TableField(value = "depict")
    private String depict;

    /**
     * 媒体类型：1-图片 2-视频
     */
    @TableField(value = "type")
    private Integer type;

    /**
     * 0-正常 1-已删除
     */
    @TableField(value = "is_deleted")
    private Integer isDeleted;

    /**
     * 自定义类型码，例如用于区分过车前后的媒体
     */
    @TableField(value = "type_code")
    private String typeCode;

    /**
     * 1保存在临时文件夹，2保存在正式文件夹
     */
    @TableField(value = "is_save")
    private String isSave;

    /**
     * 1非法，2正常
     */
    @TableField(value = "is_illegal")
    private String isIllegal;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_ORDER_ID = "order_id";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_PICTURE_URL = "picture_url";

    public static final String COL_DEPICT = "depict";

    public static final String COL_TYPE = "type";

    public static final String COL_TYPE_CODE = "type_code";
}